﻿using System;
using System.Net.Sockets;
using System.Text;


namespace Json.Net.Test
{
    class Program
    {



        class TT
        {
            public Int32 a { set; get; }
            public Int32 b { set; get; }
        }

        static void Main(string[] args) {
            Int64 i = 0;
            using (MuYue.Plugin.Profile.Step("jisuan"))
            {

                var max = 1000000000;
                for (; i < max; i++)
                {
                    i++;
                }
            }
            Console.WriteLine(i);
            //var t1 = new JsonRpc.JsonRequest("Arith.Multiply", 1, new TT() { a = 1, b = 2 });
            //var t2 = new JsonRpc.JsonRequest("Arith.Divide", 2, new TT() { a = 1, b = 2 });

            //var call = new JsonRpc.JsonRpcClient("127.0.0.1", 12981);
            //var i = call.Call<int>(t1);

            //var r = call.Call<Quotient>(t2);
            //Console.WriteLine("结果如下：{0}", i);
            //Console.WriteLine("结果如下：{0}：{1}", r.Quo, r.Rem);
           Console.ReadKey();
        }



        class Quotient
        {
            public int Quo { set; get; }
            public int Rem { set; get; }
        }


    }
}
